package cn.iocoder.yudao.module.system.controller.admin.examscore.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 学生成绩导入 Excel VO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExamScoreImportExcelVO {

    /**
     * 考试ID（导入时设置）
     */
    private Long examId;

    /**
     * 学生ID（导入时设置）
     */
    private Long studentId;

    @ExcelProperty("学号")
    @NotBlank(message = "学号不能为空")
    private String studentNo;

    @ExcelProperty("学生姓名")
    @NotBlank(message = "学生姓名不能为空")
    private String studentName;

    @ExcelProperty("语文成绩")
    private BigDecimal chineseScore;

    @ExcelProperty("数学成绩")
    private BigDecimal mathScore;

    @ExcelProperty("英语成绩")
    private BigDecimal englishScore;

    @ExcelProperty("物理成绩")
    private BigDecimal physicsScore;

    @ExcelProperty("化学成绩")
    private BigDecimal chemistryScore;

    @ExcelProperty("生物成绩")
    private BigDecimal biologyScore;

    @ExcelProperty("政治成绩")
    private BigDecimal politicsScore;

    @ExcelProperty("历史成绩")
    private BigDecimal historyScore;

    @ExcelProperty("地理成绩")
    private BigDecimal geographyScore;

    @ExcelProperty("总分")
    @NotNull(message = "总分不能为空")
    private BigDecimal totalScore;

}